<html>
<head>
<title>Example load PDF from TOC</title>
    <SCRIPT Language="JScript">
      function parser(fn) {
      var X, Y, sl, a, ra, link;
      ra = /:/;
      a = location.href.search(ra);
      if (a == 2)
      X = 14;
      else
      X = 7;
      sl = "\\";
      Y = location.href.lastIndexOf(sl) + 1;
      link = 'file:///' + location.href.substring(X, Y) + fn;
      location.href = link;
      }
      parser('external_files/example-external-pdf.pdf');
    </SCRIPT>
</head>
<body>
</body>
</html>